package com.learn.project2.model.vo.admin.storage;

import com.learn.project2.bean.MarketStorage;
import com.learn.project2.model.bo.admin.storage.StorageListDetailsBO;
import lombok.Data;

import java.util.List;

/**
 * @Classname StorageListVO
 * @Description
 * @author王茁
 * @Date 2022/1/7 17:12
 */
@Data
public class StorageListVO {

    /**
     * total : 85
     * pages : 5
     * limit : 20
     * page : 1
     * list : [{"id":87,"key":"n1huv6s3yfop9tmxyi39.jpg","name":"朱雀.jpg","type":"image/jpeg","size":630715,"url":"http://182.92.235.201:8083/wx/storage/fetch/n1huv6s3yfop9tmxyi39.jpg","addTime":"2022-01-07 16:56:03","updateTime":"2022-01-07 16:56:03","deleted":false},{"id":86,"key":"bjjl4dqq2s8jta6m6p3h.jpg","name":"朱雀.jpg","type":"image/jpeg","size":630715,"url":"http://182.92.235.201:8083/wx/storage/fetch/bjjl4dqq2s8jta6m6p3h.jpg","addTime":"2022-01-07 16:55:48","updateTime":"2022-01-07 16:55:48","deleted":false},{"id":85,"key":"spkyfduz7algu1tzhsn3.jpg","name":"自由之翼.jpg","type":"image/jpeg","size":433411,"url":"http://182.92.235.201:8083/wx/storage/fetch/spkyfduz7algu1tzhsn3.jpg","addTime":"2022-01-07 16:55:02","updateTime":"2022-01-07 16:55:02","deleted":false},{"id":84,"key":"l2edbdt8mrkdvgl8lljk.jpg","name":"山1.jpg","type":"image/jpeg","size":338928,"url":"http://182.92.235.201:8083/wx/storage/fetch/l2edbdt8mrkdvgl8lljk.jpg","addTime":"2022-01-07 16:52:26","updateTime":"2022-01-07 16:52:26","deleted":false},{"id":83,"key":"k2mulsvk4ghzz52asef2.jpg","name":"玫瑰.jpg","type":"image/jpeg","size":11713,"url":"http://182.92.235.201:8083/wx/storage/fetch/k2mulsvk4ghzz52asef2.jpg","addTime":"2022-01-07 16:51:58","updateTime":"2022-01-07 16:51:58","deleted":false},{"id":82,"key":"uc2uslcv1dbcclkm12f5.jpg","name":"迪丽热巴2.jpg","type":"image/jpeg","size":10490,"url":"http://182.92.235.201:8083/wx/storage/fetch/uc2uslcv1dbcclkm12f5.jpg","addTime":"2022-01-07 16:50:54","updateTime":"2022-01-07 16:50:54","deleted":false},{"id":81,"key":"4o0rrzw15p4n5pu0plbm.jpg","name":"1.jpg","type":"image/jpeg","size":179372,"url":"http://182.92.235.201:8083/wx/storage/fetch/4o0rrzw15p4n5pu0plbm.jpg","addTime":"2022-01-07 16:45:33","updateTime":"2022-01-07 16:45:33","deleted":false},{"id":80,"key":"mrp9kfvpftzdrftfv5s3.jpg","name":"课程大纲.jpg","type":"image/jpeg","size":986299,"url":"http://182.92.235.201:8083/wx/storage/fetch/mrp9kfvpftzdrftfv5s3.jpg","addTime":"2022-01-07 16:42:48","updateTime":"2022-01-07 16:42:48","deleted":false},{"id":79,"key":"ukok63god548j4xlbecw.jpg","name":"课程大纲.jpg","type":"image/jpeg","size":986299,"url":"http://182.92.235.201:8083/wx/storage/fetch/ukok63god548j4xlbecw.jpg","addTime":"2022-01-07 16:42:42","updateTime":"2022-01-07 16:42:42","deleted":false},{"id":78,"key":"uysv690g1459mvptdc4z.jpg","name":"Snipaste_2022-01-07_15-07-50.jpg","type":"image/jpeg","size":61962,"url":"http://182.92.235.201:8083/wx/storage/fetch/uysv690g1459mvptdc4z.jpg","addTime":"2022-01-07 16:36:28","updateTime":"2022-01-07 16:36:28","deleted":false},{"id":77,"key":"y260rk38x0ejlsgief8o.jpg","name":"1.jpg","type":"image/jpeg","size":179372,"url":"http://182.92.235.201:8083/wx/storage/fetch/y260rk38x0ejlsgief8o.jpg","addTime":"2022-01-07 16:35:24","updateTime":"2022-01-07 16:35:24","deleted":false},{"id":76,"key":"yhkvzy3c8xa10orlfs8g.jpg","name":"の","type":"image/jpeg","size":61962,"url":"http://182.92.235.201:8083/wx/storage/fetch/yhkvzy3c8xa10orlfs8g.jpg","addTime":"2022-01-07 16:26:12","updateTime":"2022-01-07 16:40:57","deleted":false},{"id":75,"key":"zhf0n39op9jnvfeqb9sr.jpg","name":"3.jpg","type":"image/jpeg","size":1685346,"url":"http://182.92.235.201:8083/wx/storage/fetch/zhf0n39op9jnvfeqb9sr.jpg","addTime":"2022-01-07 16:21:44","updateTime":"2022-01-07 16:32:35","deleted":false},{"id":74,"key":"dqcqxq87fkrqr841n2oj.jpg","name":"Snipaste_2022-01-07_15-07-50.jpg","type":"image/jpeg","size":61962,"url":"http://182.92.235.201:8083/wx/storage/fetch/dqcqxq87fkrqr841n2oj.jpg","addTime":"2022-01-07 16:11:15","updateTime":"2022-01-07 16:11:15","deleted":false},{"id":73,"key":"a9vdciet2thkx1v108b0.png","name":"大宝剑.png","type":"image/png","size":56755,"url":"http://182.92.235.201:8083/wx/storage/fetch/a9vdciet2thkx1v108b0.png","addTime":"2022-01-07 16:09:32","updateTime":"2022-01-07 16:09:32","deleted":false},{"id":72,"key":"i05vxq773qd7mqkewgqj.jpg","name":"8552679.jpg","type":"image/jpeg","size":199671,"url":"http://182.92.235.201:8083/wx/storage/fetch/i05vxq773qd7mqkewgqj.jpg","addTime":"2022-01-07 16:07:30","updateTime":"2022-01-07 16:07:30","deleted":false},{"id":71,"key":"35kehlcs4wcw0yrol1ep.jpg","name":"Snipaste_2022-01-07_15-07-50.jpg","type":"image/jpeg","size":61962,"url":"http://182.92.235.201:8083/wx/storage/fetch/35kehlcs4wcw0yrol1ep.jpg","addTime":"2022-01-07 16:03:24","updateTime":"2022-01-07 16:03:24","deleted":false},{"id":70,"key":"j7pgn685v4vuc0g215hq.jpg","name":"df3kvg4dg5h0egh6vga1.jpg","type":"image/jpeg","size":138845,"url":"http://182.92.235.201:8083/wx/storage/fetch/j7pgn685v4vuc0g215hq.jpg","addTime":"2022-01-07 16:00:42","updateTime":"2022-01-07 16:00:42","deleted":false},{"id":69,"key":"kivlvyxtnr0bija4q900.jpg","name":"oXKJtNhKcTAb1efe21736414a48f1b0bed399916fdc6.jpg","type":"image/jpeg","size":64789,"url":"http://182.92.235.201:8083/wx/storage/fetch/kivlvyxtnr0bija4q900.jpg","addTime":"2022-01-07 16:00:15","updateTime":"2022-01-07 16:00:15","deleted":false},{"id":68,"key":"chdf8gtokt5eexyrak2q.png","name":"大宝剑.png","type":"image/png","size":56755,"url":"http://182.92.235.201:8083/wx/storage/fetch/chdf8gtokt5eexyrak2q.png","addTime":"2022-01-07 15:55:24","updateTime":"2022-01-07 15:55:24","deleted":false}]
     */

    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<MarketStorage> list;

    public static StorageListVO storageListVO(long total, Integer pages, Integer limit, List<MarketStorage> list) {
        StorageListVO storageListVO = new StorageListVO();
        storageListVO.setTotal((int) total);
        storageListVO.setPages(pages);
        storageListVO.setLimit(limit);
        storageListVO.setList(list);
        return storageListVO;
    }
}
